R Markdown Cookbook by Xie Yihui; Dervieux Christophe; Riederer Emily

R Markdown Cookbook by Xie Yihui; Dervieux Christophe; Riederer Emily

Author:Xie, Yihui; Dervieux, Christophe; Riederer, Emily
Language: eng
Format: epub
Publisher: CRC Press LLC
Published: 2021-07-15T00:00:00+00:00


X1 X2 X3

1e+O3 -869.58

0.0513 1e+O5

0.9654 69.38

options(knitr.kable.NA = "**")

knitr::kable(d)

X1 X2 X3

** 1e+O3 -869.58

0.0513 1e+05 **

0.9654 ** 69.38

options(opts) # restore global R options

10.1.7 Escape special characters

If you are familiar with HTML or LaTeX, you know that there are a few special characters in these languages. To generate safe output, kable() will escape these special characters by default via the argument escape = TRUE, which means all characters will be generated verbatim, and special characters lose theirspecialmeanings. For example,> will be substituted with > for HTML tables, and _ will be escaped as \_ for LaTeX tables. If you are an expertand know howtouse special charactersproperly, you may disable this argument via escape = FALSE. In the second table below, we include a few LaTeX math expressions that contain special characters $, \, and _:

m <- lm(dist ~ speed, data = cars)

d <- coef(summary(m))

knitr::kable(d)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
ChatGPT in the Classroom: The Future of Educational AI: From Elementary to University - Transformative Strategies for Classrooms, Curriculum, and Creative Teaching with ChatGPT by Hussaini Saif(298516)
Weapons of Math Destruction by Cathy O'Neil(5829)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(4043)
What It Really Takes to Get Into Ivy League and Other Highly Selective Colleges by Hughes Chuck(3551)
Fooled by Randomness: The Hidden Role of Chance in Life and in the Markets by Nassim Nicholas Taleb(2860)
The Tyranny of Metrics by Jerry Z. Muller(2847)
The Marketing Plan Handbook: Develop Big-Picture Marketing Plans for Pennies on the Dollar by Robert W. Bly(2795)
Ultralearning by Scott Young(2730)
The Official Guide for GMAT Review 2015 with Online Question Bank and Exclusive Video by Graduate Management Admission Council (GMAC)(2643)
50 Economics Classics by Tom Butler-Bowdon(2409)
The Visual MBA by Jason Barron(1979)
The Inevitable by Kevin Kelly(1834)
Data Science for Business by Foster Provost & Tom Fawcett(1812)
Out of the Crisis by Deming W. Edwards(1759)
GMAT Official Guide 2018 Verbal Review by GMAC (Graduate Management Admission Council)(1702)
Cracking the LSAT, 2012 Edition by Princeton Review(1688)
The Personal MBA: Master the Art of Business by Josh Kaufman(1647)
The Conflict Resolution Phrase Book by Barbara Mitchell & Cornelia Gamlem(1646)
Maths and Stats for Web Analytics and Conversion Optimization by Himanshu Sharma(1564)
College Essays that Made a Difference by Princeton Review(1550)